package Stringclass;

public class isflag {
		public static void main(String[] args) {
			boolean isflag = true; 
			int count = 0;
			for (int i = 2; i <= 1000; i++) {
				for (int j = 2; j <= Math.sqrt(i); j++) {
					if(i%j==0) {
						isflag = false;
						break;
					}
				}
				while(isflag == true) {
					count++;
					break;
				}
				//isflag = true;
			}
			System.out.println(count);
		}
}
